#ifndef TEXTEXML__H
#define TEXTEXML__H

#include "config.h"
#include "NodeXML.h"

using namespace std;

class TextXML : public NodeXML{

public:

TextXML();

/**
 * Constructor n°1 : Instanciate the own member of this class: text
 * @param _children the content of text (string)
 */
TextXML(string _content);

/**
 * Constructor n°2 : Instanciate the own member of this class: content
 * @param _content the content of text (char*)
 */
TextXML(char* _content);

/**
 * Destructor
 */
virtual ~TextXML(){};

/**
 * Method which returns the representation in string of this text
 * @return representation of this text (string)
 */
string toString() const;

/**
 * Getter for the class member: content
 * @return the class member : content
 */
string getContent() const;

/**
 * Setter for the class member: content
 * @param _content the content to set
 * @return true if no error, false otherwise
 */
bool setContent(string _content);
string getRegExp() const;
string getName() const {return "<>" ;};

protected:

/**
 * A protected class member represent the content of the text inside a XML Tag
 */
string content;
};

#endif
